var total_best_page = 3;
var best_start_like = -50000;
var best_end_like = 50000;


function getrandomhome(a,b){
	return (a + Math.floor(Math.random()*(b-a)));
}

document.getElementById("total_like1").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like2").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like3").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like4").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like5").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like6").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like7").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like8").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like9").value = getrandomhome(best_start_like,best_end_like);
document.getElementById("total_like10").value = getrandomhome(best_start_like,best_end_like);

function plus_like(id_total_like){
    document.getElementById(id_total_like).value++;
}

function minus_like(id_total_like){
    document.getElementById(id_total_like).value--;
}


